from PIL import Image
from pylab import *

# im = Image.open("./dep_im/0.pgm")
im = Image.open("../outs_depth/1.pgm")

ar = np.array(im)
b_im = Image.fromarray(ar)

imshow(im)
show()

imshow(b_im)
show()

im.save('./test_direct.pgm')
b_im.save('./test_from_ar.pgm')


